using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Chapter04_1_13_RawImage : MonoBehaviour
{
    private void Start()
    {
        var rednerTexture=RenderTexture.GetTemporary(Screen.width,Screen.height);
        Camera.main.targetTexture = rednerTexture;
        var rawImage = GetComponent<UnityEngine.UI.RawImage>();
        rawImage.texture = rednerTexture;
        rawImage.enabled = true;
    }
}
